package com.zzq.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Service;

import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Service // 使用@Service注解的元数据
public @interface SubService {
    @AliasFor(
            annotation = Service.class
    )
    String value() default ""; // 你可以定义自己的属性
}